package avicit.bdp.dms.das.service;

import avicit.bdp.common.base.BaseService;
import avicit.bdp.common.service.dto.ColumnPartitionedDTO;
import avicit.bdp.dms.das.dao.ColumnPartitionedDao;
import avicit.bdp.dms.das.vo.PartitionedColumnInfoVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @金航数码科技有限责任公司
 * @作者：developer
 * @邮箱：developer@avic-digital.com
 * @修改记录：
 */
@Service
public class ColumnPartitionedService extends BaseService<ColumnPartitionedDao, ColumnPartitionedDTO> {

    private static final Logger LOGGER = LoggerFactory.getLogger(ColumnPartitionedService.class);


    public void deleteByTableId(String tableId) {
        this.mapper.deleteByTableId(tableId);
    }

    public void insertListByBatch(List<ColumnPartitionedDTO> columnPartitionedList) {
        this.mapper.insertListByBatch(columnPartitionedList);
    }

    public List<PartitionedColumnInfoVO> selectInfoColumns(List<String> tableQuery) {
        return this.mapper.selectInfoColumns(tableQuery);
    }

    public List<String> selectIdByTableId(String tableId) {
        return this.mapper.selectIdByTableId(tableId);
    }

}
